package cate.common.table.activity.tangyuan;

import cate.common.table.ESheet;
import org.apache.commons.collections4.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

public class TangYuanBaseSheet extends ESheet<TangYuanBaseRow> {
    @Override
    public String getSheetName() {
        return "基础";
    }

    public List<TangYuanBaseRow> callTypeRowList(int confID) {
        if(CollectionUtils.isEmpty(list)){
            return null;
        }
        List<TangYuanBaseRow> typeList = new ArrayList<>();
        for (TangYuanBaseRow base : list) {
            if (base.confID == confID) {
                typeList.add(base);
            }
        }
        return typeList;
    }
}
